<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
</head>

<body>
    <div id="root"></div>

    <table cellspacing="0">
        <thead>
            <tr>
                <th>序号</th>
                <th>姓名</th>
                <th>年龄</th>
                <th>性别</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <!-- <tr>
                <td>1</td><td>tom</td><td>20</td><td>male</td><td>删除</td>
            </tr> -->
        </tbody>
    </table>

    <script src="../../../tools/mathtool.js"></script>
    <script src="../../../tools/data_structure.js"></script>

    <script>
        /* 造1234条学生数据 */
        const students = []
        for (let i = 0; i < 1234; i++) {
            const stu = new Student(
                getLengthedNumStr(i + 1, 4),
                getRandomName(),
                getRandom(20, 40),
                getRandomItem("男女基同"),
                getRandom(2101, 2199) + "",
                getRandom(7000, 18000)
            )
            students.push(stu)
        }
        console.log(students);
    </script>
</body>

</html>